package com.example.binpacking.controller;

import com.example.binpacking.model.GoodsSize;
import com.example.binpacking.model.Result;
import com.example.binpacking.service.GoodsSizeService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
@RequestMapping("/goodssize")
@Slf4j
public class GoodsSizeController {
    @Autowired
    private GoodsSizeService goodsSizeService;
    @GetMapping("/select")
    public Result list(){
        log.info("查询全部产品数据");

        List<GoodsSize> list = goodsSizeService.list();
        return Result.success(list);
    }



}
